﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.IO;
using System.Linq;
using System.Threading.Tasks;

namespace ControllerManageServer
{
    [RunInstaller(true)]
    public partial class ProjectInstaller : System.Configuration.Install.Installer
    {
        public ProjectInstaller()
        {
            InitializeComponent();
            string path = GetType().Assembly.Location;
            ///path = path.Substring(0, path.LastIndexOf("\\"));
            FileInfo info = new FileInfo(path);
            string ServiceName = info.Name.Substring(0, info.Name.LastIndexOf("."));
            //ConfigInfo.Init($@"{path}\Config\system.config");
            //Console.WriteLine($@"{path}\Config\system.config");
            serviceInstaller1.ServiceName = ServiceName;
        }
    }
}
